//
//  WeatherModel.m
//  Zaker
//
//  Created by dllo on 16/3/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "WeatherModel.h"

@implementation WeatherModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"now"]) {
        self.nowTmp = value[@"tmp"];
        self.txt = value[@"cond"][@"txt"];
    }
    if ([key isEqualToString:@"aqi"]) {
        self.qlty = value[@"city"][@"qlty"];
    }
    if ([key isEqualToString:@"basic"]) {
        self.loc = value[@"update"][@"loc"];
    }
}

@end
